@model Rework.CommerceHistory.ViewModels.CommerceHistoryViewModel

@{ Layout.Title = T("Commerce History").ToString(); }

<fieldset>
    <legend>@T("Commerce History")</legend>
    <div>
        @Html.LabelFor(m => m.UserName, @T("User Name"))
        @Html.EditorFor(m => m.UserName)
        @Html.ValidationMessageFor(m => m.UserName, "*")
    </div>
    <div>
        @Html.LabelFor(m => m.ProductId, @T("Product"))
        @Html.DropDownListFor(m => m.ProductId, Model.Products, new { @class = "textMedium" })
        @Html.ValidationMessageFor(m => m.ProductId, "*")
    </div>
    <div>
        @Html.LabelFor(m => m.Quantity, @T("Quantity"))
        @Html.EditorFor(m => m.Quantity)
        @Html.ValidationMessageFor(m => m.Quantity, "*")
    </div>
    <div>
        @Html.LabelFor(m => m.Price, @T("Price"))
        @Html.EditorFor(m => m.Price)
        @Html.ValidationMessageFor(m => m.Price, "*")
    </div>
    <div>
        @Html.EditorFor(m => m.IsPaymentConfirmed) 
        <label class="forcheckbox" for="@Html.FieldIdFor(m => m.IsPaymentConfirmed)">@T("Is Payment Confirmed?")</label>
    </div>
</fieldset>

